package cn.tedu.csmall.product.ex;

import cn.tedu.csmall.product.web.ServiceCode;

/**
 * @Description:
 * @Author: sweeterjava@163.com
 * @Date: 2022/10/26
 * @Time: 16:30
 */
public class ServiceException extends RuntimeException {

    private ServiceCode serviceCode;
    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

    public ServiceCode getServiceCode() {
        return serviceCode;
    }
}
